#ifndef _ARRAYG_H
#define _ARRAYG_H

#include <float.h>

#define MAX_NODE_NUM 20
#define INF FLT_MAX

typedef enum { DG, DN, UDG, UDN } GraphType;

typedef struct {
    float weight;
    char *info;
} MCell, AdjMatrix[MAX_NODE_NUM][MAX_NODE_NUM];

typedef struct {
    GraphType type;
    int nodenum,arcnum;
    char nodes[MAX_NODE_NUM];
    AdjMatrix arcs;
    char *info;
} GraphStruct, *Graph;

#endif
